<style>
  .ngdialog.ngdialog-theme-default .ngdialog-content {
    background: #fff;
  }
</style>

<h2>启动任务</h2>
<!-- {{task.group}} -->
<form name='startTask' novalidate="">
  <div class="form-group">
    <label for='chooseGroup'>选择分组</label>
    <ui-select multiple ng-model="task.group" theme="bootstrap" close-on-select="false">
        <ui-select-match placeholder="请选择分组...">{{$item.groupID
        }}</ui-select-match>
        <ui-select-choices repeat="group in groups">
          <div ng-bind-html="group.groupID"></div>
        </ui-select-choices>
      </ui-select>
  </div>
  <div class="form-group">
    <label for="choosePrio">任务优先级</label>
    <select class="form-control" id="choosePrio" ng-model="task.previous">
      <option ng-repeat="prio in priorities" ng-value='prio.value'>
        {{prio.name}}
      </option>
    </select>
  </div>
  <button class="btn btn-info" ng-click='start(task)'><i class='fa fa-play-circle-o'></i> 启动</button>
  <button class="btn btn-default" ng-click='closeThisDialog("cancel")'>取消</button>
  <span class="label label-danger" ng-show="errMessage.length">{{errMessage}}</span>
</form>
